home *** CD-ROM | disk | FTP | other *** search
- Path: shell02.ozemail.com.au!pompo
- From: pompo@shell02.ozemail.com.au (Michael Pomponio)
- Newsgroups: comp.lang.c++
- Subject: Visual c++ Win32 problem
- Date: 20 Jan 1996 04:11:07 GMT
- Organization: OzEmail Pty Ltd - Australia
- Message-ID: <4dpq0r$d1c@oznet07.ozemail.com.au>
- NNTP-Posting-Host: shell02.ozemail.com.au
- X-Newsreader: TIN [version 1.2 PL2]
-
- Subject: Visual c++ Win32 Problems
- In Visual c++ v1.5 I wrote an application that calls an windows ftp
- program anf waits until the ftp prgram has finished before continuing. I
- basialled called the ftp like so;
-
-
- WinExec("ftp", 4);
- while ( FindWindow(NULL, "ftp") != NULL)
- {
- Yeild();
- }
- MessageBox("FTP PROGRAM HAS EXITED"):
-
-
- When I try to do the same in Visual c++ v2.0 ( running on Win95) It
- doesn't work for 2 reasons, (1) Yield() function no longer exists in
- Win32 and (2) porgrams are executed via a THREAD and a NEW PROCESS (
- bloody multitasking). Does anybody now how I can do what I did in v1.5 in
- v2.0/ Becuase I have read every c++ book in any of Sydneys desent book
- store and they tell nothing about WinExec, createprocess and createthread
- ( that is relevant)..
-
- Thanks I advance
-
- Michael Pomponio............
-
-